package org.jeecg.modules.demo.instoragedetail.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.instoragedetail.entity.InStorageDetail;
import org.jeecg.modules.demo.instoragedetail.mapper.InStorageDetailMapper;
import org.jeecg.modules.demo.instoragedetail.service.IInStorageDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 入库单明细表
 * @Author: jeecg-boot
 * @Date: 2022-02-13
 * @Version: V1.0
 */
@Service
public class InStorageDetailServiceImpl extends ServiceImpl<InStorageDetailMapper, InStorageDetail> implements IInStorageDetailService {
    @Autowired
    private InStorageDetailMapper inStorageDetailMapper;

    // 根据订单id查询
    @Override
    public IPage<InStorageDetail> getByMainId(Page<InStorageDetail> page, String mainId) {
        return inStorageDetailMapper.getByMainId(page, mainId);
    }
}
